﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - @CommonLibrary.SoftResources.StringResouce.SoftName</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink(CommonLibrary.SoftResources.StringResouce.SoftName, "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                            <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                        管理员</a>
                        <ul class="dropdown-menu">
                            <li>@Html.ActionLink("公告更改", "ChangeAnnouncement", "Home")</li>
                            <li>@Html.ActionLink("账号管理", "ManagementAccount", "Home")</li>
                            <li>@Html.ActionLink("注册账户", "RegisterAccount", "Account")</li>
                            <li role="separator" class="divider"></li>
                            <li>@Html.ActionLink("日志查看", "About", "Home")</li>
                            <li>@Html.ActionLink("消息发送", "SendMessage", "Home")</li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                            <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                        设置</a>
                        <ul class="dropdown-menu">
                            <li>@Html.ActionLink("关于本系统", "About", "Home")</li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                        <span class="glyphicon glyphicon-th" aria-hidden="true"></span>
                        关于</a>
                        <ul class="dropdown-menu">
                            <li>@Html.ActionLink("关于本系统", "About", "Home")</li>
                            <li>@Html.ActionLink("更新日志", "UpdateLog", "Home")</li>
                            <li>@Html.ActionLink("版本号说明", "VersionInformation", "Home")</li>
                            <li>@Html.ActionLink("建议反馈", "AdviceFeedback", "Home")</li>
                        </ul>
                    </li>
                </ul>
                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p style="text-align:center">
                @{ 
                    string year = DateTime.Now.Year > 2017 ? "2017 - " + DateTime.Now.Year : DateTime.Now.Year.ToString();
                }

                <small>
                    &copy; @year - @CommonLibrary.SoftResources.StringResouce.SoftName | 本软件著作权归<span>@CommonLibrary.SoftResources.StringResouce.SoftCopyRight</span>所有
                    | 服务器版本：V @ClientsLibrary.UserClient.CurrentVersion.ToString()
                </small>
            </p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>
